<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cloud Mail - 免费部署的极简邮件服务</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .feature-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #667eea;
        }
        .section-divider {
            background: linear-gradient(to right, transparent, #667eea, transparent);
            height: 1px;
            margin: 3rem 0;
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            flex-shrink: 0;
        }
        .highlight-text {
            background: linear-gradient(to right, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 600;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6">
        <div class="max-w-6xl mx-auto text-center">
            <h1 class="text-5xl md:text-6xl font-bold mb-6 tracking-tight">
                <i class="fas fa-envelope-open-text mr-4"></i>Cloud Mail
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">免费部署的极简邮件服务，让每个人都能拥有专属邮箱</p>
            <div class="flex flex-wrap justify-center gap-4">
                <a href="https://github.com/eoao/cloud-mail" target="_blank" class="bg-white text-purple-700 px-8 py-3 rounded-full font-semibold hover:bg-gray-100 transition duration-300">
                    <i class="fab fa-github mr-2"></i>访问 GitHub
                </a>
                <div class="bg-purple-800 bg-opacity-50 px-8 py-3 rounded-full">
                    <i class="fas fa-server mr-2"></i>零服务器成本
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-6xl mx-auto px-6 py-12">
        <!-- Introduction -->
        <section class="bg-white rounded-2xl shadow-xl p-8 mb-12 card-hover">
            <p class="text-lg leading-relaxed text-gray-700 drop-cap">
                Cloud Mail是一款响应式、极简风格的邮件服务，专为在Cloudflare平台上免费部署而设计。它的主要用途是帮助个人或小型团队利用自己的域名建立专属邮件服务，同时避免传统的服务器费用。该工具的目标用户是那些寻求经济高效、可定制且注重隐私的邮件解决方案的用户。
            </p>
        </section>

        <!-- Core Features -->
        <section class="mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800">
                <i class="fas fa-star feature-icon mr-3"></i>核心功能概述
            </h2>
            <div class="grid md:grid-cols-2 gap-6">
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="flex items-start">
                        <div class="bg-purple-100 rounded-lg p-3 mr-4">
                            <i class="fas fa-cloud text-purple-600 text-xl"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-lg mb-2">零服务器成本部署</h3>
                            <p class="text-gray-600">依托Cloudflare Workers，实现真正免费的邮件服务搭建。</p>
                        </div>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="flex items-start">
                        <div class="bg-purple-100 rounded-lg p-3 mr-4">
                            <i class="fas fa-paper-plane text-purple-600 text-xl"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-lg mb-2">强大邮件收发</h3>
                            <p class="text-gray-600">集成Resend服务，支持群发、嵌入图片和附件，并提供邮件状态追踪。</p>
                        </div>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="flex items-start">
                        <div class="bg-purple-100 rounded-lg p-3 mr-4">
                            <i class="fas fa-users text-purple-600 text-xl"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-lg mb-2">多账户管理</h3>
                            <p class="text-gray-600">允许单一用户添加并管理多个邮箱地址，便于集中处理不同身份的邮件。</p>
                        </div>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                    <div class="flex items-start">
                        <div class="bg-purple-100 rounded-lg p-3 mr-4">
                            <i class="fas fa-database text-purple-600 text-xl"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-lg mb-2">附件存储与推送</h3>
                            <p class="text-gray-600">支持通过R2对象存储实现附件的收发，并能将收到的邮件推送到Telegram机器人或其他邮箱。</p>
                        </div>
                    </div>
                </div>
                <div class="bg-white rounded-xl shadow-lg p-6 card-hover md:col-span-2">
                    <div class="flex items-start">
                        <div class="bg-purple-100 rounded-lg p-3 mr-4">
                            <i class="fas fa-chart-line text-purple-600 text-xl"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-lg mb-2">直观数据可视化</h3>
                            <p class="text-gray-600">利用Echarts展示系统数据、用户及邮件增长趋势，让管理更清晰。</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <div class="section-divider"></div>

        <!-- Use Cases -->
        <section class="mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800">
                <i class="fas fa-lightbulb feature-icon mr-3"></i>使用场景
            </h2>
            <div class="bg-gradient-to-r from-purple-50 to-blue-50 rounded-2xl p-8">
                <p class="text-lg mb-6 text-gray-700">Cloud Mail能有效解决以下问题，提升您的邮件管理效率：</p>
                <div class="space-y-4">
                    <div class="flex items-start">
                        <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                        <div>
                            <span class="font-semibold">创建自定义域名邮箱：</span>
                            <span class="text-gray-600">轻松为您的个人品牌或小型企业搭建专业后缀的邮箱，提升形象。</span>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                        <div>
                            <span class="font-semibold">整合多平台邮件：</span>
                            <span class="text-gray-600">如果您管理着多个邮箱账户，Cloud Mail可提供统一入口，简化操作流程。</span>
                        </div>
                    </div>
                    <div class="flex items-start">
                        <i class="fas fa-check-circle text-purple-600 mt-1 mr-3"></i>
                        <div>
                            <span class="font-semibold">实现自动化通知：</span>
                            <span class="text-gray-600">将重要邮件自动转发至Telegram等即时通讯工具，确保信息不遗漏。</span>
                        </div>
                    </div>
                </div>
                <div class="mt-8 p-6 bg-white rounded-xl shadow-md">
                    <p class="text-lg text-gray-700 italic">
                        <i class="fas fa-question-circle text-purple-600 mr-2"></i>
                        思考：您的个人或小型企业是否也正为高昂的邮件服务费用而烦恼？Cloud Mail能否成为您的理想替代方案？
                    </p>
                </div>
            </div>
        </section>

        <!-- Architecture Diagram -->
        <section class="mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800 text-center">
                <i class="fas fa-sitemap feature-icon mr-3"></i>系统架构
            </h2>
            <div class="bg-white rounded-2xl shadow-xl p-8">
                <div class="mermaid">
                    graph TD
                        A[用户] -->|访问| B[Cloud Mail界面]
                        B --> C[Cloudflare Workers]
                        C --> D[D1数据库]
                        C --> E[KV存储]
                        C --> F[R2对象存储]
                        C --> G[Resend API]
                        G -->|发送邮件| H[收件人]
                        C --> I[Telegram Bot]
                        I -->|推送通知| A
                        
                        style A fill:#667eea,stroke:#fff,color:#fff
                        style B fill:#764ba2,stroke:#fff,color:#fff
                        style C fill:#f093fb,stroke:#333
                        style D fill:#f5576c,stroke:#fff,color:#fff
                        style E fill:#f5576c,stroke:#fff,color:#fff
                        style F fill:#f5576c,stroke:#fff,color:#fff
                        style G fill:#4facfe,stroke:#fff,color:#fff
                        style H fill:#667eea,stroke:#fff,color:#fff
                        style I fill:#4facfe,stroke:#fff,color:#fff
                </div>
            </div>
        </section>

        <div class="section-divider"></div>

        <!-- Advantages -->
        <section class="mb-12">
            <h2 class="text-3xl font-bold mb-8 text-gray-800">
                <i class="fas fa-trophy feature-icon mr-3"></i>优势与特色
            </h2>
            <div class="grid md:grid-cols-2 gap-6">
                <div class="bg-gradient-to-br from-purple-500 to-pink-500 rounded-xl p-6 text-white">
                    <i class="fas fa-dollar-sign text-3xl mb-4"></i>
                    <h3 class="text-xl font-bold mb-2">极致成本效益</h3>
                    <p>基于Cloudflare Workers的免费部署，是其最大的亮点，显著降低了使用门槛。</p>
                </div>
                <div class="bg-gradient-to-br from-blue-500 to-cyan-500 rounded-xl p-6 text-white">
                    <i class="fas fa-palette text-3xl mb-4"></i>
                    <h3 class="text-xl font-bold mb-2">高度可定制性</h3>
                    <p>支持自定义网站标题、登录背景，并能灵活控制注册、邮件发送等功能开关。</p>
                </div>
                <div class="bg-gradient-to-br from-green-500 to-teal-500 rounded-xl p-6 text-white">
                    <i class="fas fa-shield-alt text-3xl mb-4"></i